const state = {
    displayUserDemo:'userinfor',
    displayUserId:0,
    army_data:{
        army_id:0,
        army_name:'',
    }
}

const mutations = {
    insertdisplayUserDemo : (state, insertData) => {
        state.displayUserDemo = insertData;
    },
    insertdisplayUserId : (state, insertData) => {
        state.displayUserId = insertData;
    },
    insertdisplayArmy : (state, insertData) => {
        state.army_data.army_id = insertData.army_id;
        state.army_data.army_name = insertData.army_name;
    },
}
const getters = {
    getdisplayUserDemo : state => {
        return state.displayUserDemo;
    },
    getdisplayUserID : state => {
        return state.displayUserId;
    },
    getdisplayArmy : state => {
        return state.army_data;
    },
   
}
const actions = {}

export default {
    namespaced: true,
    state,
    mutations,
    getters,
    actions
}